<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of welcome
 *
 * @author Obi
 */
class Admin_pembayaran extends MY_Controller {

    function __construct() {
        parent::__construct();

        $cek_admin = $this->session->userdata('cek_admin');
        if (!$cek_admin)
            redirect("admin");

        $this->mkonfirmasitransfer = new M_konfirmasi_transfer();
    }

    function index() {

        $data['title'] = 'Konfirmasi Pembayaran';

        $data['list_konfirmasi'] = $this->mkonfirmasitransfer->get();

        $data['isi'] = 'isi';
        $this->load->view('template_admin', $data);
    }

    function delete($id) {
        $this->mkonfirmasitransfer->delete($id);
        redirect("admin_pembayaran");
    }

}

?>
